clear
cd "C:\Users\selfd\Documents\autopartyinstitutionalization\legacy\cps\replication\data\stata"
use "C:\Users\selfd\Documents\autopartyinstitutionalization\legacy\cps\replication\data\stata\stata_replication.dta"
xtset ccode year
xtpcse v2xps_party i.gwf_prior pi1 prior_pi asp_dummy v2x_polyarchy  lgdp  gwf_pduration  gwf_number  fsu ussr_sat  regime_elecs  av_dm, pairwise
est store model1
xtpcse ldv i.gwf_prior pi1 prior_pi asp_dummy v2x_polyarchy  lgdp  gwf_pduration  gwf_number  fsu ussr_sat  regime_elecs  av_dm, pairwise
est store model2
xtpcse ldv i.gwf_prior pi1 prior_pi reactive v2x_polyarchy  lgdp  gwf_pduration  gwf_number  fsu ussr_sat  regime_elecs  av_dm, pairwise
est store model3
estout model1 model2 model3 using table2.tex, cells(b(star) se(par)) stats(r2 N, fmt(3 0)) label replace